package com.study.mike.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.mike.model.dto.GrantRoleResourceDTO;
import com.study.mike.model.entity.RoleResource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author KangHui
 * @Date 2022/8/22 16:00
 */
@Mapper
public interface RoleResourceMapper extends BaseMapper<RoleResource> {

    /**
     * 角色授予资源列表
     * @param roleId
     * @return
     */
    List<GrantRoleResourceDTO> grantRoleResourceList(List<Integer> roleId);

}
